package com.zlt.bkparking.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

public class MD5Util {

   /**
    * 针对密码进行加密操作
    * @param password
    * @param salt
    * @param count
    * @return
    */
   public static String md5(String password,String salt,Integer count){
       return new Md5Hash(password,salt,count).toString();
   }

   public static String md5(String password,String salt){
       return new Md5Hash(password,salt,10).toString();
   }

}
